package com.king.springcloud.controller;

import com.king.springcloud.entities.CommonResult;
import com.king.springcloud.entities.PaymentEntity;
import com.king.springcloud.service.PaymentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author king
 * @date 2020/10/20 17:35
 */
@RestController
public class OpenFeignSentinelController {

    @Resource
    private PaymentService paymentService;

    @GetMapping("/comsumer/paymentSQL/{id}")
    CommonResult<PaymentEntity> paymentSQL(@PathVariable("id") Long id){
        return paymentService.paymentSQL(id);
    }
}
